jQuery(document).ready(function(){

	$j("#addlanguage_handler").bind("click", function(){
		$j("#addlanguage").fadeIn("fast");
	});
	
	$j("#close_addlang").bind("click", function(){
		$j("#addlanguage").fadeOut("fast");
	});
	
	$j("#notice_ok").bind("click", function(){
		
		var value = $j("#addlang_input").attr("value");
		var url   = $j("#addgroup_form").attr("action");
		
		$j("#message_ag").text( "Please wait..." );
		
		$j.ajax({
			type: "POST",
			url:  url+":"+value,
			dataType: "json",
			success: function ( data, status ){
				alert( "aa");
			}
		});
	});
	
	$j("#notice_not").bind("click", function(){
		$j("#addlanguage").fadeOut("fast");
	});
});